package nl.weeaboo.sh.danmaku.commands;

import nl.weeaboo.sh.danmaku.ShotModel;
import nl.weeaboo.sh.danmaku.Spell;
import nl.weeaboo.sh.danmaku.SpellBook;
import nl.weeaboo.sh.danmaku.Universe;

public class TVisible extends Spell {

	private boolean visible;
	
	public TVisible(boolean v) {
		this.visible = v;
	}
	protected TVisible(TVisible t) {
		super(t);		
		visible = t.visible;
	}
	
	public TVisible clone() {
		return new TVisible(this);
	}
	
	@Override
	public void step(Universe u, SpellBook sb, ShotModel s) {
		s.setVisible(visible);
		finish();
	}
	
}
